/**
 * ===========================================
 * Project: qb-common
 * ===========================================
 * Package: com.cyou.qb.common.dao
 * 
 * Copyright (c) 2012, CYOU All Rights Reserved.
 * ===========================================
 */
package com.cyou.qb.common.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.cyou.qb.common.domain.JiuGongGe;

/**
 * <p>JiuGongGe</p>
 * <p>
 * Description:九宫格配置位置DAO
 * </p>
 *
 * @author lidongwei
 * @version 
 * @since 2012-10-13
 */
@Component
public class JiuGongGeDao extends MysqlBaseDao{

	/**
	 * Description 批量添加九宫格配置
	 * @author lidongwei
	 * @since 2012-10-13
	 */
	public void saveJiuGongGeList(List<JiuGongGe> jiuGongGeList) {
		this.insert("saveJiuGongGeList", jiuGongGeList);
	}

	/**
	 * Description
	 * @author lidongwei
	 * @since 2012-10-15
	 */
	public void deleteJiuGongGeByActiveId(int activeId) {
		this.delete("deleteJiuGongGeByActiveId", activeId);
		
	}
	
	public List<JiuGongGe> findJIuGongGeByActiveId(int activeId){
		return this.getListByEntity("findJIuGongGeByActiveId", activeId);
	}

	/**
	 * Description 根据奖品id删除九宫格中数据
	 * @author lidongwei
	 * @since 2012-10-19
	 */
	public void deleteJiuGongGeByAwardId(Integer awardId) {
		this.delete("deleteJiuGongGeByAwardId", awardId);
		
	}
	
	public List<JiuGongGe> findJIuGongGeByAwardId(int awardId){
		return this.getListByEntity("findJIuGongGeByAwardId", awardId);
	}

}
